<?php
/**
 * created by zzy
 * date: 2017/10/24 9:40
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class MessageRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Message\Controllers', 'prefix'=>'message'], function ($router) {

            //消息跳详情跟采购相关的页面
            $router->any('purchase-start', 'PurchaseController@start');
            $router->any('purchase-in', 'PurchaseController@in');
            //消息跳详情跟订单相关的页面
            $router->any('order-start', 'OrderController@start');
            $router->any('order-pre-send', 'OrderController@preSend');
            //消息跳详细跟成品相关的页面
            $router->any('warehouse-in', 'WarehouseController@in');
        });
    }
}